<?php
/**
 * Created by PhpStorm.
 * User: shuixian
 * Date: 2019/11/20
 * Time: 18:29
 */


$houseList = <<<HOUSELIST
{"title":"房源列表","type":"houseList","iconPath":"iconfangyuanlist","isDelete":true,"addNumber":5,"attr":[{"title":"列表名称","type":"Input","name":"title"},{"title":"是否显示标题","type":"Switch","name":"isShowTitle"},{"title":"选择类型/分类","type":"Cascader","name":"category","desc":"请选择列表要展示的内容","data":[]},{"title":"列表数量","type":"InputNumber","name":"limit"},{"title":"是否显示地址","type":"Switch","name":"isShowAddr"},{"title":"是否显示更多","type":"Switch","name":"isShowMore"}],"data":{"title":"房源列表","isShowTitle":true,"isShowAddr":true,"category_type":0,"category_title":0,"category":0,"limit":{"number":3,"min":1,"max":20,"label":"请输入"},"isShowMore":true}}
HOUSELIST;

$search = <<<SEARCH
{"title":"搜索栏","type":"search","iconPath":"iconsousuo","isDelete":true,"addNumber":1,"attr":[],"data":{"placeholder":"请输入搜索内容"}}
SEARCH;


//模块组件 后台DIY页面的左侧
return [

    [
        "title" => "业务组件",

        'type' => 'houseCompoent',

        'data' =>[

            json_decode($search, true),

            json_decode($houseList, true),
        ]
    ],





];